import { CALL_API } from '../middleware/api';
// const
export function fetchSignIn(username, password) {
  const endpoint = 'http://127.0.0.1:8868/post/signin';
  const params = {
    username,
    password,
  };
  return {
    [CALL_API]: {
      endpoint,
      params,
    },
  };
}
export function fetchDraftData() {
  const endpoint = 'http://127.0.0.1:8868/get/Draft';
  const params = {};
  return {
    [CALL_API]: {
      endpoint,
      params,
    },
  };
}